home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
__MANDEL
/
MANDELBR
/
CMANDELD.H1
< prev
next >
Wrap
Text File
|
1992-03-27
|
3KB
|
108 lines
/****
* CMandelDoc.h
*
* Document class for a typical application.
*
****/
#define _H_CMandelDoc /* Include this file only once */
#include <CDocument.h>
#include <CApplication.h>
class CMandelMap;
class CMandelPhase;
typedef unsigned TDwell, **TDwellH;
typedef struct _mandelinfo {
double fHOrigin;
double fVOrigin;
short fWidth;
short fHeight;
short fDepth;
double fScale;
TDwell fMaxDwell;
} TMandelInfo;
class CMandelDoc: public CDocument {
public:
void IMandelDoc(CApplication *aSupervisor, Boolean printable);
void Dispose(void);
void DoCommand(long theCommand);
void DoGenerate(void);
void DoDraw(void);
void Dawdle(long *);
void UpdateMenus(void);
void NewFile(void);
void OpenFile(SFReply *macSFReply);
void BuildWindow(Handle theData);
/** Filing **/
Boolean DoSave(void);
Boolean DoSaveAs(SFReply *macSFReply);
void MakeFile(SFReply *macSFReply);
void PickFileName(SFReply *macSFReply);
void DoRevert(void);
void InputTicks(void);
void InputMaxDwell(void);
void InputRootScale(void);
void SetMaxDwell(TDwell);
TDwell GetMaxDwell(void);
void AllocateDwellsHandle(void);
TDwellH GetDwellsHandle(void);
void ClearDwellsHandle(void);
CMandelMap * GetMandelMap(void);
void SetOrigin(double theHOrigin, double theVOrigin);
void GetOrigin(double *theHOrigin, double *theVOrigin);
void SetScale(double theScale);
double GetScale(void);
void QDToReal(Point theQDPt, double *theHCoord, double *theVCoord);
void RealToQD(double theHCoord, double theVCoord, Point *theQDPt);
short GetWidth(void);
short GetHeight(void);
void GetMandelInfo(TMandelInfo *);
void SetMandelInfo(TMandelInfo *);
void UpdateSettingsMenu(MenuHandle);
void DoImage(void);
CMandelPhase * itsPhase;
double itsHStart, itsVStart;
short itsWidth, itsHeight;
double itsScale;
TDwell itsMaxDwell;
TDwellH itsDwellsH;
long itsElapsedTicks;
long itsRealTicks;
long itsFAwakeTicks;
long itsFSleepTicks;
long itsBAwakeTicks;
long itsBSleepTicks;
double itsRootScale;
static long cFAwakeTicks;
static long cFSleepTicks;
static long cBAwakeTicks;
static long cBSleepTicks;
protected:
CMandelMap * itsMandelMap;
double itsHOrigin, itsVOrigin;
short itsDepth;
long itsImageMapCmd;
long itsDwellMapCmd;
private:
static TDwell cMaxDwell;
};